package com.liu.common.entity.vo;

import com.liu.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class WIAGetInvasionsVO extends BaseEntity {

    private String id;

    /**
     * 开始时间
     */
    private String activation;

    /**
     * 剩余时间
     */
    private String eta;

    /**
     * 节点
     */
    private String node;

    /**
     * 是否已完成
     */
    private Boolean completed;

    /**
     * 进攻方
     */
    private Attacker attacker;

    /**
     * 防守方
     */
    private Defender defender;

    @Getter
    @Setter
    public static class Attacker extends BaseEntity {

        private Reward reward;

        /**
         * 派系
         */
        private String faction;
    }

    @Getter
    @Setter
    public static class Defender extends BaseEntity {

        private Reward reward;

        /**
         * 派系
         */
        private String faction;
    }

    @Getter
    @Setter
    public static class Reward extends BaseEntity {

        /**
         * 奖励物品数量 + 名称
         */
        private String itemString;

        /**
         * 奖励物品
         */
        private List<CountedItem> countedItems;

        @Getter
        @Setter
        public static class CountedItem extends BaseEntity {

            /**
             * 数量
             */
            private Integer count;

            /**
             * 名称
             */
            private String key;
        }
    }
}
